# -*- encoding: utf-8 -*-
'''
@File    :   test.py
@Contact :
@Author  :     ypy

@Modify Time      @Author    @Version    @Desciption
------------      -------    --------    -----------
2021/2/23 21:29   ypy      1.0         测试单元
'''

import unittest

# 需设置当前的环境变量，该环境变量只在本程序有效，导入models单元不会报错
import os, django, xlwt

os.environ['DJANGO_SETTINGS_MODULE'] = 'lottery_V2.settings'
django.setup()

import SSQ.models as models
import lottery_V2.export_and_import_excel as export_and_import
from django.core.exceptions import ObjectDoesNotExist


class TestStringMethods(unittest.TestCase):

    def test_upper(self):

        export_and_import.export_excel('ok')


if __name__ == '__main__':
    unittest.main()
